#ifndef __EPD_FUN_H
#define __EPD_FUN_H
#include "main.h"


extern uint8_t GRAM[5000];

typedef enum
{
	WHITE = 0xFF,
	BLACK = 0x00
}ColorTypeDef;

void EPD_Display(void);
void EPD_Update(void);
void EPD_Clear(ColorTypeDef Color);
void EPD_DrawPoint(uint16_t x,uint16_t y,ColorTypeDef Color);
//void EPD_DrawLine(uint16_t Xstart,uint16_t Ystart,uint16_t Xend,uint16_t Yend,ColorTypeDef Color);
void EPD_DrawLine(uint8_t Xstart,uint8_t Ystart,uint8_t Xend,uint8_t Yend,uint8_t n,ColorTypeDef Color);
void EPD_ShowPicture(uint16_t X,uint16_t Y,const uint8_t * Pic,uint16_t width,uint16_t heigth);
#endif /* __EPD_FUN_H */
